#ifndef DEVICEVIEWINFODIALOG_H
#define DEVICEVIEWINFODIALOG_H

#include <QDialog>
#include <QList>
#include <list>
#include "deviceviewinfo.h"
#include "device.h"
#include "devicedao.h"
#include <QPushButton>
//#include "mainwindow.h"
class DeviceViewInfoDialog : public QDialog
{
    Q_OBJECT
public:
    explicit DeviceViewInfoDialog(QWidget *parent = 0, int id = -1, const QString &subsetIp = "",
                                  const QString &subsetMask = "");
    ~DeviceViewInfoDialog();
    void initDeviceViewInfoDialog();
    void deleteDevice();
    void updateDevice();
    bool validIp(QString str);
    bool validMac(QString str);
    bool validType(QString str);
    bool validSnmp(QString str);
    bool validBiSubset(QString str);
signals:

public slots:
    void on_updateButton_clicked();
    void on_deleteButton_clicked();
private:
    DeviceViewInfo_Dialog *deviceViewInfoDialog;
    list<Device *> deviceList;
    //MainWindow1 *mainWindow;
    int mostUpDeviceId;
    QString mostUpSubsetIp;
    QString mostUpSubsetMask;
};

#endif // DEVICEVIEWINFODIALOG_H
